package com.tools;

public class HttpThrowable extends Throwable {
	/**  **/
	private static final long	serialVersionUID	= 1L;
	public int			errorCode;
	public static final int	URL_ERROR			= 0xff001;
	public static final int	POST_DATA			= 0xff002;
	public static final int	STATUS_CODE_ERROR	= 0xff003;
	public static final int	INTENT_ERROR		= 0xff004;
	public static final int	UNKOWN_ERROR		= 0xff005;
	public static final int	DOWNLOAD_ERROR		= 0xff006;

	
	
	public HttpThrowable(int errorCode, String message) {
		super(message);
		this.errorCode = errorCode;
	}
	
	public HttpThrowable(int errorCode, Throwable t) {
		super(t);
		this.errorCode = errorCode;
	}
}
